home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / uemlsrc.arc / shell.h < prev    next >
C/C++ Source or Header  |  1987-08-24  |  1KB  |  35 lines

  1. /* shell.h header for uemail files shell.c, emcc.c, and path.c */
  2.  
  3.  
  4. #include <stdio.h>
  5. #include <ctype.h>
  6. #include <osbind.h>
  7. #include "ed.h"
  8.  
  9. #define GEMLOAD         /* if prog was loaded from GEM give back 256K to OS */
  10. #define MAXPATH 128
  11. #define MAXINPUT 80
  12. extern long adderr, buserr;     /* default GEMDOS error handlers */
  13. extern int errexit();           /* my error handler */
  14.  
  15. extern char cline[MAXINPUT+1];          /* holds the command line and other thin
  16. gs */
  17. extern char pnam[MAXINPUT+1];           /* program name */
  18. extern char source[MAXINPUT+1];         /* name of file for cc() */
  19. extern char path[MAXPATH+1];            /* current path string */
  20. extern int delete;                      /* on/off for above     */
  21. extern int dolink;                      /* link a program       */
  22. extern int temdrv;
  23. extern int curdrv;
  24.  
  25. /* aliases are kept in dynamically allocated tables.  Space for each alias
  26.  * and its associated value is allocated as needed.
  27.  */
  28. typedef struct  ALITAB {
  29.         struct  ALITAB  *a_forw;        /* next table   */
  30.         char            *alias;         /* alias        */
  31.         char            *value;         /* actual value */
  32. } ALITAB;
  33.  
  34. extern ALITAB *aheadp;                  /* structure header */
  35.